<?php

class CardModule {

    public function show2() {
        global $_FANWE;

        include template('page/card/show2');
        display();
    }

    public function show() {
        global $_FANWE;

        $id = intval($_GET['id']);
        $sql = 'SELECT * FROM '.FDB::table('wogu_card')." WHERE id='{$id}'";
        $card = FDB::fetchFirst($sql);
        if(!$card) {
            exit;
        }

        $card['fmt_date'] = date('Y年m月d日 H:i', $card['dateline']);
        include template('page/card/show');
        display();
    }
}